﻿using System;
using System.Data;

namespace BizElements.Core.ProviderComponents
{
    /// <summary>Builds <see cref="System.Data.IDataAdapter"/> objects.</summary>
    public interface IDataAdapterBuilder
    {
        /// <summary>Creates data adapter.</summary>
        /// <param name="cmd">Command object that can be casted to command supported by output adapter.</param>
        /// <returns>Data adapter.</returns>
        IDataAdapter BuildAdapter(IDbCommand cmd);
    }
}